package com.housekeeping.housekeeping.serviceItem.dao;

import com.housekeeping.housekeeping.serviceItem.controller.ServiceItemDetailsController;
import com.housekeeping.housekeeping.serviceItem.entity.ServiceItemDetails;
import com.housekeeping.housekeeping.serviceItem.entity.ServiceItemPage;

import java.sql.SQLException;

public interface ServiceItemDao {
    int add(String aid,ServiceItemPage itemPage, String detailsContext);
    ServiceItemPage getItemPage(String aid) throws Exception;

    ServiceItemDetails getItemDetails(String aid) throws SQLException;

    int update(String aid,ServiceItemPage itemPage, String details);

    int accountServiceItemExist(String aid) throws SQLException;
}
